package com.ticket.sass.common.douyin.openapi.resposne

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName

open class ApiResponseBaseData(
    // 错误码，0为成功
    @SerializedName("error_code") open val errorCode: Int = 0,
    @SerializedName("description") open val description: String = "",
//    @Expose(serialize = false, deserialize = false) private var metadata: ApiResponse<*>? = null
) {
//    fun setMetadata(data: ApiResponse<*>) {
//        metadata = data
//    }
//
//    fun getMetadata(): ApiResponse<*>? {
//        return metadata
//    }
    fun isSuccess(): Boolean {
        return errorCode == 0
    }
}
